<template>
  <view class="container">
    <!-- 确认灯在闪烁
若设备没有闪烁，请按以下步骤进行设置:
1.接通设备电源
2.十秒内执行:开灯-关灯-开灯-关灯-开灯 -->
    <view class="title">初始化设备 </view>
    <view class="desc"> 确认灯在闪烁 </view>
    <view class="desc"> 若设备没有闪烁，请按以下步骤进行设置: </view>
    <view class="desc"> 1.接通设备电源 </view>
    <view class="desc"> 2.十秒内执行:开灯-关灯-开灯-关灯-开灯 </view>

    <view class="footer">
      <u-radio-group v-model="value">
        <u-radio name="isCheck" shape="circle" label="我已完成以上操作"></u-radio>
      </u-radio-group>

      <view class="btn" @click="toNext"> 下一步 </view>
    </view>
  </view>
</template>
  
  <script>
import * as Api from "@/api/page";
import { checkLogin } from "@/core/app";
import * as UserApi from "@/api/user";

const App = getApp();

export default {
  components: {},
  data() {
    return {
      // 页面参数
      options: {},
      value: false,
    };
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {},

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {},

  methods: {
    toNext() {
        console.log('this.value',this.value);
        
      if (!this.value) {
        uni.showToast({
          title: "请先确认完成以上操作",
          icon: "none",
        });
        return;
      }
      uni.navigateTo({
        url: "/pages/category/initDeviceTwo/index",
      });
    },
  },
};
</script>
  
  <style lang="scss" scoped>
.container {
  background: #f6f7fb;
  padding: 42.614rpx;
}

.title {
  font-family: "Microsoft YaHei";
  font-size: 51.136rpx;
  font-weight: 700;
  line-height: 67.483rpx;
  text-align: left;
  color: rgba(0, 0, 0, 1);
}

.desc {
  font-family: "Microsoft YaHei";
  font-size: 34.091rpx;
  font-weight: 400;
  line-height: 34.091rpx;
  text-align: left;
  margin-top: 27.273rpx;
}

.footer {
  position: fixed;
  bottom: 51.136rpx;
  left: 42.614rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn {
  margin-top: 34.091rpx;
  width: 656.25rpx;
  height: 83.523rpx;
  background: rgba(96, 164, 247, 1);

  font-family: "Microsoft YaHei";
  font-size: 25.568rpx;
  font-weight: 400;
  line-height: 33.75rpx;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;

  color: rgba(255, 255, 255, 1);
  border-radius: 41.666rpx;

  color: white;
}
</style>
  